public class Dog extends Animal{
    String name="Dog";
    @Override
    void getAnimalName(Animal a) {
        System.out.println(a.name);
    }

    void cry(){
        System.out.println(name+":wang wang");
    }
}
